package com.chance.cc.crawler.prod.command.trigger.domain.news.guokr;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.guokr.GuoKrCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

public class GuoKrScheduleTrigger extends CommonCrawlerSchedulerTrigger {
    public static void main(String[] args) {
        //果壳文章
        publishGuoKrScheduleTriggerInfo();
    }
    public static void publishGuoKrScheduleTriggerInfo(){
        CrawlerJob crawlerJob = GuoKrCrawlerScheduleJob.articleScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                GuoKrCrawlerScheduleJob.DOMAIN,
//                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
////                "",
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 3 * * ?",//每日凌晨三点采集一次
                "果壳采集7天内的文章互动量和昨日最新回复"
        );
    }
}
